<?php

namespace app\purchase\controller;
use app\common\controller\PCBase;
use app\common\controller\DBase;
use app\purchase\logic\PlanSuggestLogic;
use  think\App;
class PlanSuggest extends PCBase
{

    /**
     * @desc   备货建议seller_sku列表接口
     * @author luckyXiong
     * @date   2025-06-11
     */
    public function getSuggest(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->getSuggest($params);
    }


    /**
     * @desc   编辑备货建议列表接口
     * @author luckyXiong
     * @date   2025-06-10
     */
    public function editSuggest(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->editSuggest($params);
    }



    /**
     * @desc   删除接口
     * @author luckyXiong
     * @date   2025-06-10
     */
    public function deleteSuggest(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->deleteSuggest($params);
    }

    /**
     * @desc   添加备注接口
     * @author luckyXiong
     * @date   2024-12-21
     */
    public function addRemark(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->addRemark($params);
    }

    
    /**
     * @desc   单独更新建议备货量
     * @author luckyXiong
     * @date   2025-06-10
     */
    public function editSuggestSkuNums(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->editSuggestSkuNums($params);
    }


    /**
     * @desc   单独更新备货幅度
     * @author luckyXiong
     * @date   2025-07-01
     */
    public function editSuggestRate(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->editSuggestRate($params);
    }




    /**
     * @desc   备货建议spu列表接口
     * @author luckyXiong
     * @date   2025-06-11
     */
    public function getSpuSuggest(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->getSpuSuggest($params);
    }



    /**
     * @desc   导出备货建议
     * @author luckyXiong
     * @date   2025-06-11
     */
    public function export(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->export($params);
    }



    /**
     * @desc   导出备货建议明细
     * @author luckyXiong
     * @date   2025-06-11
     */
    public function exportSku(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->exportSku($params);
    }


    /**
     * @desc   获取采购合同数据明细
     * @author luckyXiong
     * @date   2025-06-16
     */
    public function get_contact_list(){
        $params             = $this->request->post();
        return  (new PlanSuggestLogic())->get_contact_list($params);
    }


    /**
     * @desc  确认通过
     * @author luckyXiong
     * @date   2025-06-16
     */
    public function check_contract(){
        $params             = $this->request->post();
        $admin_id           = $this->getAdminId();
        $params['admin_id'] = $admin_id;
        (new PlanSuggestLogic())->check_contract($params);
        return $this->jsonMessage(200, true,'操作成功',null);
    }


    /**
     * @desc  导出明细
     * @author luckyXiong
     * @date   2025-06-25
     */
    public function export_detail(){
        $params = $this->request->post();
        (new PlanSuggestLogic())->export_detail($params);
        return $this->jsonMessage(200, true,'操作成功',null);
    }




}